import { request } from '@/utils/request.js';

//管理员登录
const login = (data) => {
  return request({
    url: '/index/login',
    method: 'post',
    data
  });
}

// 图片验证码
const captcha = (data) => {
  return request({
    url: '/index/captcha',
    method: 'post',
    data
  });
}

// 用户信息
const userDetail = (data) => {
  return request({
    url: '/user/detail',
    method: 'post',
    data
  });
}

export default {
  login,
  captcha,
  userDetail
}